home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / imap-3.5 / README < prev   
Encoding:
Text File  |  1995-07-14  |  8.5 KB  |  182 lines

  1.            IMAP/c-client Development Environment
  2.                 6 June 1994
  3.                    Mark Crispin
  4.  
  5. COPYRIGHT NOTICE:
  6.  
  7. Some portions Copyright 1988 by The Leland Stanford Junior University.
  8. Copyright 1994 by the University of Washington.
  9.  
  10.  Permission to use, copy, modify, and distribute this software and its
  11. documentation for any purpose and without fee is hereby granted, provided
  12. that the above copyright notices appear in all copies and that both the
  13. above copyright notices and this permission notice appear in supporting
  14. documentation, and that the name of the University of Washington or The
  15. Leland Stanford Junior University not be used in advertising or publicity
  16. pertaining to distribution of the software without specific, written prior
  17. permission.  This software is made available "as is", and
  18. THE UNIVERSITY OF WASHINGTON AND THE LELAND STANFORD JUNIOR UNIVERSITY
  19. DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO THIS SOFTWARE,
  20. INCLUDING WITHOUT LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  21. FITNESS FOR A PARTICULAR PURPOSE, AND IN NO EVENT SHALL THE UNIVERSITY OF
  22. WASHINGTON OR THE LELAND STANFORD JUNIOR UNIVERSITY BE LIABLE FOR ANY
  23. SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
  24. RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
  25. CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF
  26. OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  27.  
  28.  
  29. BUG REPORTING ADDRESS:
  30.  
  31.      Although this software is not "supported" per se, bugs or questions
  32. regarding this software may be reported to the author:
  33.  Internet:    MRC@CAC.Washington.EDU
  34.  Postal mail:    Mark Crispin
  35.         University of Washington
  36.         Networks and Distributed Computing, JE-30
  37.         Seattle, WA  98195
  38.         USA
  39.  Phone:        +1 (206) 543-5762
  40.  FAX:        +1 (206) 685-4045
  41.  
  42. CONTENTS:
  43.  
  44.      This directory tree contains the following:
  45.  
  46. Documentation:
  47.  . README        this file
  48.  . RFC1176.TXT        IMAP2 protocol RFC
  49.  . IMAP2bis.TXT        temporary documentation of MIME extensions for IMAP
  50.  
  51. Sources:
  52.  . Makefile        master makefile for Unix
  53.  . ANSI            ANSI C sources
  54.  . non-ANSI        source converted into pre-ANSI C
  55.  
  56. c-client courtesy links:
  57.  . c-client        c-client Application Program Interface (API)
  58.  . ms            Unix MS client (MM-like interface)
  59.  . ipopd        Unix POP2/POP3 servers with IMAP2 client support
  60.  . imapd        IMAP2 server (on Unix, runs under inetd)
  61.  
  62. NOTES ON THE VARIOUS COMPONENTS:
  63.  
  64.      ms runs under BSD Unix and requires Columbia's CCMD command package in
  65. a ccmd/ directory at the same level as the root of this directory tree.  If
  66. ccmd is not available, the build of ms is ignored.
  67.  
  68.      mtest has been run under Unix, DOS, Macintosh, and TOPS-20.  It is a
  69. very primitive interface, however, and is suited mainly as a model of how
  70. to write a main program for the C-Client.  You should take a look at the
  71. source to figure out how to use it.  Briefly, it first asks for a mailbox
  72. name (either a local file path or an IMAP mailbox in the form
  73. {hostname}mailbox) and then puts you in a command mode where "?" will give
  74. you a list of commands.
  75.  
  76.      The Unix clients ms and/or mtest may be installed on a system
  77. directory.  There is also a man page for ms.  The Pine mailer for Unix and
  78. DOS has IMAP2 support, and is available separately on the
  79. FTP.CAC.Washington.EDU archives.
  80.  
  81.      The Unix servers ipop2d, ipop3d, and imapd should be installed in a
  82. system daemon directory, and invoked by your /etc/inetd.conf file with
  83. lines such as:
  84.  
  85. pop    stream    tcp    nowait    root    /usr/local/etc/ipop2d    ipop2d
  86. pop3    stream    tcp    nowait    root    /usr/local/etc/ipop3d    ipop3d
  87. imap    stream    tcp    nowait    root    /usr/local/etc/imapd    imapd
  88.  
  89.      Note that different variants of Unix have different versions of inetd,
  90. so you should verify the precise form of these commands (for example, some
  91. versions of inetd do not require the "nowait").
  92.  
  93.      You may also have to edit your /etc/services (or Yellow Pages,
  94. NetInfo, etc. equivalent) to register these services, such as:
  95.  
  96. pop        109/tcp        postoffice
  97. pop3        110/tcp
  98. imap        143/tcp
  99.  
  100.      If you want to enable the rimap capability, which allows users with a
  101. suitable client and .rhosts file on the server to access IMAP services
  102. without transmitting her password in the clear over the network, you need
  103. to have /etc/rimapd as a link to the real copy of imapd.  Assuming you have
  104. imapd installed on /usr/local/etc as above:
  105.     % ln -s /usr/local/etc/imapd /etc/rimapd
  106.  
  107.      Technical note: rimap works by having the client routine tcp_aopen()
  108. invoke `rsh _host_ exec /etc/rimapd' in an child process, and then
  109. returning pipes to that process' standard I/O instead of a TCP socket.  You
  110. can set up `e-mail only accounts' by making the shell be something which
  111. accepts only that string and not ordinary Unix shell commands.
  112.  
  113.      Before doing a make on UNIX, you should read the top-level Makefile
  114. and see if your system type is known.  The various system types are
  115. three-letter codes, and are described in more detail in the c-client
  116. Makefile.  If your system type is known, then use this as the make option.
  117. After the first time you do a make, this option is remembered in a file
  118. called OSTYPE, so just typing "make" suffices.
  119.  
  120.      For example, if you are using an IBM AIX 3.2 system on an RS/6000,
  121. your system type is a32, and the appropriate command is:
  122.     make a32
  123.  
  124.      There are various other make options, described in the c-client
  125. Makefile.  A common additional option is to enable the mbox driver, which
  126. will move mail from /usr/spool/mail into a file called mbox in the user's
  127. home directory.  This is done by specifying the EXTRADRIVERS variable, as
  128. in:
  129.     make a32 EXTRADRIVERS=mbox
  130.  
  131.      If your system type is not in the top-level Makefile, you first need
  132. to identify whether your compiler supports ANSI C.  This will determine
  133. what source tree to use.  [Note that some compilers, such as Ultrix,
  134. support some aspects of ANSI C but not others; c-client really beats on the
  135. full prototyping capability of ANSI C so you have to use the non-ANSI
  136. source tree for such systems.]  Next, identify a system which is somewhat
  137. close to the system you have.  For BSD-like systems, try the bsd port; for
  138. SVR4-like systems, try the sv4 port.
  139.  
  140.      It's probably best to see if the unmodified bsd or sv4 ports will work
  141. on your system before inventing a new port.  If you must invent a new port,
  142. you need to create an entry in the top-level and c-client Makefiles for
  143. your new port, as well as os_???.h and os_???.c files with the appropriate
  144. OS-dependent support for that system.  If you send the result back to us,
  145. we will make it available for others using your particular system type.
  146.  
  147.      If you are building a DOS client, you will need a TCP/IP stack
  148. installed on your DOS system along with its development environment.  The
  149. currently supported stacks are Beame & Whiteside, PC-NFS, Novell, PC/IP,
  150. Waterloo, and Winsock.  mtest and a version of Pine called PC Pine run
  151. under DOS.  You do not use the top-level Makefile under DOS, nor do you
  152. build any components other than c-client.  The DOS makefiles are found in
  153. the c-client directory in the ANSI source tree, and are named according to
  154. the TCP/IP stack in use (e.g. makefile.dnv for DOS/Novell)
  155.  
  156.      If you are building a Macintosh client, you will need MacTCP installed
  157. on your system as well as the MacTCP C includes and libraries.  mtest runs
  158. on the Macintosh, and is routinely built with THINK C.  Contact me for a
  159. THINK C project file and cute icon for it.
  160.  
  161.      If you use a Mac C compiler with 2-byte ints (such as THINK C's normal
  162. mode) you will need to fix some bugs in the MacTCP C includes and libraries
  163. to prevent it from generating bad code, since those MacTCP files violate
  164. Apple's standards of always using explicit shorts or longs, never ints.
  165. You could avoid this if you set 4-byte ints in THINK C; however, the ANSI
  166. and UNIX libraries in THINK C use 2-byte ints so you will also need to
  167. build 4-byte int versions of these.  c-client itself is 2-byte int or
  168. 4-byte int clean; it can be used in either mode.
  169.  
  170.      The most important bug in the MacTCP files that you need to fix is in
  171. the file AddressXlation.h, you need to change the definition of the rtnCode
  172. member of the hostInfo structure to be long instead of int.  There are
  173. several other changes you need to make if you decide to compile dnr.c under
  174. THINK C instead of using the Apple-supplied object file; see me for details
  175. if you decide to undertake such an effort.
  176.  
  177.      I have provided a c-client port for TOPS-20 systems, but you're on
  178. your own in terms of a nice TOPS-20 like main program.  Maybe someday some
  179. nice person will try porting ms to TOPS-20.  It's been a number of years
  180. since I last tried building c-client on TOPS-20, so some hacking may be
  181. needed to get it to work.
  182.